package com.pinxi.controller;

import com.pinxi.VO.SysResult;
import com.pinxi.service.RightsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author shaohe_zhang
 * @Date 2022/1/25 9:51
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/rights")
public class RightsController {

    @Autowired
    private RightsService rightsService;

    @GetMapping("/getRightsList")
    public SysResult getRightsList(){
        return SysResult.success(rightsService.getRightsList());
    }
}
